import { createApp } from 'vue'
import './style.css'
//引入 elementplus组件
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import { zhCn } from 'element-plus/es/locales.mjs'
import App from './App.vue'
import router from './router/index'
//引入 pinia
import pinia from './store/index'
//引入icon小图标
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
//
const app = createApp(App)
app.use(router)
//引入路由鉴权文件
import './permisstion'
app.use(pinia)
app.use(ElementPlus, { locale: zhCn })
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component)
  }
app.mount('#app')
